package com.cema.manage.project.android.biz;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.cema.manage.project.android.result.JsonResult;
import com.cema.manage.project.manage.questionBank.service.IQuestionBankService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("question_bank")
public class BizQuestionBankController {
    @Resource
    private IQuestionBankService questionBankService;

    @PostMapping()
    public JsonResult queryQuestionBank() {
        return JsonResult.returnResult(JsonResult.SUCCESS, questionBankService.selectList(new EntityWrapper<>()));
    }
}
